package com.zhkj.shixi.tvplayer.Interface;

import android.app.Activity;
import android.view.SurfaceHolder;

import com.zhkj.shixi.tvplayer.MyMediaPlayer;

import java.io.File;

public interface IBottomControlBar {
    /**
     * 播放
     * @author HelloWorld
     */
    public void play(MyMediaPlayer mediaPlayer);
    public void pause(MyMediaPlayer mediaPlayer);

    /**
     * 快进
     */
    public void fastGo(MyMediaPlayer mediaPlayer);
    /**
     * 快退
     */
    public void fastBack(MyMediaPlayer mediaPlayer);

    /**
     * 播放下一个视频
     *
     */
    public void next( MyMediaPlayer mediaPlayer, SurfaceHolder holder);

    /**
     * 播放上一个视频
     *
     */
    public void prev( MyMediaPlayer mediaPlayer, SurfaceHolder holder);

    /**
     * 显示缩略图
     */
    public void miniMap(Activity activity);

    /**
     * 加载字幕
     * @param file 字幕文件
     * @param activity 需要加载的活动
     */
    public void loadSubtittle(File file, Activity activity,MyMediaPlayer mediaPlayer);

    /**
     * 拖动进度条
     * @param mediaPlayer 所使用的播放器
     */
    public void refreshByProcessBar( MyMediaPlayer mediaPlayer, int time);
}

